<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class='pagination'>
		<s:if test="result.currentPage==0">
	   		<span class='disabled'> 上一页</span>
	   	</s:if>
		<s:else>
			<a href="javascript:void(0)" onclick="goPage('<s:property value="result.currentPage"/>'-1)"> 上一页</a>
		</s:else>

		<s:bean name="org.apache.struts2.util.Counter" id="counter">
	   	<s:param name="first" value="0" />
	   	<s:param name="last" value="result.totalPage-1" />
	   	<s:iterator>
	   		<s:if test="result.currentPage+1==current">
		   		<span class='current'><s:property value="current"/></span>
		   	</s:if>
			<s:else>
				<a href="javascript:void(0)" onclick="goPage('<s:property value="current"/>'-1)">
					<s:property value="current"/>
				</a>
			</s:else>
	   	</s:iterator>
		</s:bean>
		
		<%-- <span class='gap'>...</span> --%>
		
		<s:if test="result.currentPage+1==result.totalPage">
	   		<span class='disabled' onclick="javascript:void(0)"> 下一页</span>
	   	</s:if>
		<s:else>
			<a href="javascript:void(0)" onclick="goPage(parseInt('<s:property value="result.currentPage"/>')+1)"> 下一页</a>
		</s:else>
	</div>